import request from "../utils/request";

//登录
export const handleLoginApi = (data) => {
  return request({
    url: "/api/auth/login",
    method: "post",
    data,
  });
};

//注册
export const handleRegister = (data) => {
  return request({
    url: "/sys/register",
    method: "post",
    data,
  });
};

//获取用户信息
export const handleGetUserInfo = (data) => {
  return request({
    url: "/user/info",
    method: "get",
    params: data,
  });
};

//修改用户信息
export const handleUpdateUserInfo = (data) => {
  return request({
    url: "/user/update",
    method: "post",
    data,
  });
};
